package com.car.loan.project.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.loan.project.system.domain.AppVersion;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author huangding
 * @description
 * @date 2020/1/14 10:36
 */
@Repository
public interface AppVersionMapper extends BaseMapper<AppVersion> {


    /**
     * 根据渠道获取版本信息
     */
    @Select("select * from app_version where channel =#{channel}")
    AppVersion selectByChannel(@Param("channel") String channel);
}
